<%@page import="br.com.locadoraweb.bean.Generos"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>-Locadora Web-</title>
</head>
<body>
<form name="CadastraFilme" method="post" action="FilmeServlet">
<table>
	<tr>
		<td>Nome:</td>
		<td><input name="txtNome" type="text" size=45 /></td>
	</tr>
	<tr>
		<td>Descricao:</td>
		<td><input name="txtDescricao" type="text" size=100 /></td>
	</tr>
	<tr>
		<td>Preco:</td>
		<td><input name="txtPreco" type="text" size=15 /></td>
	</tr>
	<tr>
		<td>Situacao:</td>
		<td><input name="txtSituacao" type="text" size=20 /></td>
	</tr>
	<tr>
		<td>Duracao:</td>
		<td><input name="txtDuracao" type="text" size=20 /></td>
	</tr>
	<tr>

		<td>Genero:</td>
		<td><select size="1" name="cmbGeneros">
			<option selected value="Selecione"></option>
			<%
			List<Generos> lst = (List<Generos>)request.getAttribute("LstGeneros");
			for (int ix = 0; ix < lst.size(); ix++){ %>
				<option value="<%=lst.get(0).getId()%>"><%=lst.get(0).getNome()%></option>
			<%} %>
		</select></td>
	</tr>
	<tr>
		<td colspan="2"><input name="btnEnviar" type="submit"
			value="Gravar" /> <input name="btnLimpar" type="reset"
			value="Limpar" /></td>
	</tr>
</table>
</form>
</body>
</html>